<h1>Editing artifact</h1>

<%= error_messages_for :artifact %>

<% form_for(:artifact, :url => artifact_path(@artifact), :html => { :method => :put }) do |f| %>
  <p>
    <b>Type</b><br />
    <%= f.text_field :type %>
  </p>

  <p>
    <b>Title</b><br />
    <%= f.text_field :title %>
  </p>

  <p>
    <b>Content</b><br />
    <%= f.text_area :content %>
  </p>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', artifact_path(@artifact) %> |
<%= link_to 'Back', artifacts_path %>